
import { Injectable } from '@angular/core';
import { ViewModel, NgCommand } from '@farris/devkit';
import { Observable } from 'rxjs';

@Injectable()
export class ZzryU1ioComponentViewmodel extends ViewModel {
    public bindingPath = '/zzrys';
    // farrisDataGrid列集合定义 在对应component中赋值
    public zzry_u1io_dataGridColumns:any;
    // datGrid 列集合名称 用以bindData使用
    public dataGridColumnsName:string;

    public dom = {
  "zzry-u1io-dataGrid": {
    "type": "DataGrid",
    "resourceId": "zzry-u1io-dataGrid",
    "visible": {
      "useQuote": false,
      "isExpression": false,
      "value": true
    },
    "id": "zzry-u1io-dataGrid",
    "readonly": {
      "useQuote": false,
      "isExpression": false,
      "value": false
    },
    "fields": [
      {
        "type": "GridField",
        "resourceId": "code_a93b372b_7zm0",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "code_a93b372b_7zm0",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "code",
          "fullPath": "Code",
          "isExpression": false,
          "value": "code"
        },
        "dataField": "code",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "编号",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "code_a93b372b_0pwq",
          "defaultI18nValue": "编号",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "code_a93b372b_0pwq",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "code",
            "fullPath": "Code",
            "isExpression": false,
            "value": "code"
          },
          "disable": false,
          "maxLength": 100,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "name_cfdb9af1_1aie",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "name_cfdb9af1_1aie",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "name",
          "fullPath": "Name",
          "isExpression": false,
          "value": "name"
        },
        "dataField": "name",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "名称",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "name_cfdb9af1_8tqh",
          "defaultI18nValue": "名称",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "name_cfdb9af1_8tqh",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "name",
            "fullPath": "Name",
            "isExpression": false,
            "value": "name"
          },
          "disable": false,
          "maxLength": 1000,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "state_571b847a_5ejn",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "state_571b847a_5ejn",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "state",
          "fullPath": "State",
          "isExpression": false,
          "value": "state"
        },
        "dataField": "state",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "状态",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "state_571b847a_d9u5",
          "defaultI18nValue": "状态",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "state_571b847a_d9u5",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "state",
            "fullPath": "State",
            "isExpression": false,
            "value": "state"
          },
          "disable": false,
          "maxLength": 22,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "organization_49ccebaa_msdn",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "organization_49ccebaa_msdn",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "organization",
          "fullPath": "Organization",
          "isExpression": false,
          "value": "organization"
        },
        "dataField": "organization",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "组织",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "organization_49ccebaa_ms1d",
          "defaultI18nValue": "组织",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "organization_49ccebaa_ms1d",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "organization",
            "fullPath": "Organization",
            "isExpression": false,
            "value": "organization"
          },
          "disable": false,
          "maxLength": 36,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "gender_a4dcfa7d_7apv",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "gender_a4dcfa7d_7apv",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "gender",
          "fullPath": "Gender",
          "isExpression": false,
          "value": "gender"
        },
        "dataField": "gender",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "性别",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "gender_a4dcfa7d_3q5n",
          "defaultI18nValue": "性别",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "gender_a4dcfa7d_3q5n",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "gender",
            "fullPath": "Gender",
            "isExpression": false,
            "value": "gender"
          },
          "disable": false,
          "maxLength": 22,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      },
      {
        "type": "GridField",
        "resourceId": "countryOrArea_1c3558b1_127j",
        "visible": {
          "useQuote": false,
          "isExpression": false,
          "value": true
        },
        "id": "countryOrArea_1c3558b1_127j",
        "size": {
          "width": 120
        },
        "readonly": {
          "useQuote": false,
          "isExpression": false,
          "value": false
        },
        "binding": {
          "type": "Form",
          "path": "countryOrArea",
          "fullPath": "CountryOrArea",
          "isExpression": false,
          "value": "countryOrArea"
        },
        "dataField": "countryOrArea",
        "dataType": "string",
        "multiLanguage": false,
        "caption": "所属国家或地区",
        "editor": {
          "type": "TextBox",
          "isTextArea": true,
          "resourceId": "countryOrArea_1c3558b1_u4hv",
          "defaultI18nValue": "所属国家或地区",
          "visible": {
            "useQuote": false,
            "isExpression": false,
            "value": true
          },
          "id": "countryOrArea_1c3558b1_u4hv",
          "size": {},
          "readonly": {
            "useQuote": false,
            "isExpression": false,
            "value": false
          },
          "binding": {
            "type": "Form",
            "path": "countryOrArea",
            "fullPath": "CountryOrArea",
            "isExpression": false,
            "value": "countryOrArea"
          },
          "disable": false,
          "maxLength": 22,
          "isPassword": false,
          "enableViewPassword": false
        },
        "draggable": false,
        "frozen": "none",
        "sortable": true,
        "aggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "groupAggregate": {
          "type": "none",
          "formatter": {
            "type": "none"
          }
        },
        "linkedLabelEnabled": false,
        "updateOn": "blur",
        "formatter": {
          "type": "none"
        }
      }
    ],
    "multiSelect": false,
    "showLineNumber": false,
    "lineNumberTitle": "#",
    "groupTotalText": "Total",
    "filterable": false,
    "groupable": false,
    "rowClass": ""
  }
};
    @NgCommand({
        name: 'zzryu1iocomponentviewmodelAddItem1',
        params: {
        }
    })
    public zzryu1iocomponentviewmodelAddItem1(commandParam?: any): Observable<any> { return; }

    @NgCommand({
        name: 'zzryu1iocomponentviewmodelRemoveItem1',
        params: {
            id: '{DATA~/#{zzry-u1io-component}/zzrys/id}',
            successMsg: ''
        },
        paramDescriptions: {
            id: { type: 'string' },
            successMsg: { type: '' }
        }
    })
    public zzryu1iocomponentviewmodelRemoveItem1(commandParam?: any): Observable<any> { return; }

}